
<div class="content-box">

	<h2 class="book-title"><?php echo $book_info['book_name'];?></h2>
	<div class="book">
	<!--图书信息-->
		<div class="base-info fix-clear">
			<div class="bookinfo">
				<div id="cover-pic">
					<?php if ($book_info['cover_url']) {?>
					<a href="" title=""><img src="data/upload/cover-images/1.jpg" alt="" /></a>
					<?php }?>
				</div>
				<div class="abstract indent">
					<h2 class="title2">简介</h2>
					<?php echo $book_info['abstract'];?>
				</div>
			</div>
		</div>

		<div class="func">
		</div>
		<div class="indent fix-clear">
			<?php 
			if(!isset($chapter_info)){
			?>
			<h2 class="title2">目录</h2>
			<ul class="chapter-list">
				<?php 
				if (isset($article_info)) {
					foreach($article_info as $k => $a){
				?>
					<li><span><?php echo $k+1;?>.</span><a href="<?php creat_url('c=article&aid='.$a['article_id']);?>" title="" target="_blank"><?php echo $a['article_title'];?></a></li>
				<?php
					}
				}
				?>
			</ul>
			<?php
			 } else { 
				
				foreach($chapter_info as $c){
					echo "<h2 class=\"title2 fix-clear\">{$c['chapter_title']}</h2>";
					
			?>
				<ul class="chapter-list">
				<?php 
				if ( isset($article_group_by_chapter[$c['chapter_id']]) ) {
					foreach( $article_group_by_chapter[$c['chapter_id']] as $k => $a){
				?>
					<li><span><?php echo $k+1;?>.</span><a href="<?php creat_url('c=article&aid='.$a['article_id']);?>" title="" target="_blank"><?php echo $a['article_title'];?></a></li>
				<?php
					}
				}
				?>
				</ul>
			<?php		
				}
			
			}?>
		</div>
	</div>
	
	<!--侧边栏-->
	<div class="bside">
		<ul id="info">
			<li><span>作者:</span><?php echo $book_info['author_name'];?></li>
			<li><span>分类:</span><?php echo $book_info['category'];?></li>
			<li><span>标签:</span>音乐 巴洛克</li>
			<li><span>点击:</span><?php echo $book_info['views']+100;?></li>
		</ul>

		<div class="content-box">
			<h2 class="title2">读这本书的人还喜欢</h2>
		</div>
	</div>
</div>